package org.jeecg.eqp.entity;

import java.io.Serializable;
import java.util.Date;

import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@TableName("mes_pallet")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_pallet对象", description = "托盘信息")
public class MesPallet implements Serializable{/**
	 * 
	 */
	private static final long serialVersionUID = 8178966887342150307L;
	
	/**
     * 主键ID
     */
	@TableId(value = "PALLETNO")
    @ApiModelProperty(value = "托盘码")
    private String palletno;

	 /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CTIME")
    private Date ctime;
    
    /**
     * 产线
     */
    @Excel(name = "产线", width = 15, dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "NAME", dicCode = "LINE")
    @ApiModelProperty(value = "产线")
    @TableField(value = "LINE")
    private String line;
    
    /**
     * 产品(PARTNO OR PARTNO_GROUP)
     */
    @Excel(name = "产品(PARTNO OR PARTNO_GROUP)", width = 15)
    @ApiModelProperty(value = "产品(PARTNO OR PARTNO_GROUP)")
    @TableField(value = "PARTNO")
    private String partno;
    
    /**
     * 父容器码
     */
    @Excel(name = "父容器码", width = 15)
    @ApiModelProperty(value = "父容器码PARCTRNO")
    @TableField(value = "PARCTRNO")
    private String parctrno;
    
    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    @TableField(value = "UNITSN")
    private String unitsn;
    
    /**状态*/
    @ApiModelProperty(value = "状态")
	@TableField(value = "STATUS")
    private String status;
}
